GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (c6c701)
by Petko
32:29 queued 29:18
created

petkopara-crud-generator.js ➔ bulkSubmitBtnManage   A

Complexity

Conditions 4
Paths 6

Size

Total Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19
rs 9.2
cc 4
nc 6
nop 0
1
function toggleAll(source) {
2
    var aInputs = document.getElementsByTagName('input');
3
    for (var i = 0; i < aInputs.length; i++) {
4
        if (aInputs[i] != source && aInputs[i].className == source.className) {
5
            aInputs[i].checked = source.checked;
6
        }
7
    }
8
    if (source.checked) {
9
        document.getElementById('bulkSubmitBtn').disabled = false;
10
    } else {
11
        document.getElementById('bulkSubmitBtn').disabled = true;
12
13
    }
14
}
15
16
//Checks if at least one checkbox is selected.
17
function bulkSubmitBtnManage()
18
{
19
    var checkboxs = document.getElementsByClassName("check-all");
20
    var selected = false;
21
    for (var i = 0, l = checkboxs.length; i < l; i++)
22
    {
23
        if (checkboxs[i].checked)
24
        {
25
            selected = true;
26
            break;
27
        }
28
    }
29
    if (selected) {
30
        document.getElementById('bulkSubmitBtn').disabled = false;
31
    } else {
32
        document.getElementById('bulkSubmitBtn').disabled = true;
33
34
    }
35
}
36
37